<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Communities extends Model
{
    protected $table = 'communities';

    protected $guarded = ['id'];

    public function county()
    {
        return $this->belongsTo('App\Models\District','county_id','id');
    }

    public function city()
    {
        return $this->belongsTo('App\Models\District','city_id','id');
    }

    public function province()
    {
        return $this->belongsTo('App\Models\District','province_id','id');
    }
}
